package cn.domypay.back.bean;

import java.io.Serializable;

import cn.domypay.back.base.BaseObj;

public class DmpOrderGoods extends BaseObj implements Serializable{
	
	/**
	 * 订单商品信息对象
	 */
	private static final long serialVersionUID = -5341626930280457021L;
	
	private Integer recId;
	private Integer orderId;
	private Integer goodsId;
	private Integer specId;
	private String goodsName;
	private String sku;
	private Integer goodsNumber;
	private float marketPrice;
	private float goodsPrice;
	private Integer isReal;
	private String extensionCode;
	private Integer isGift;
	
	private int hashCode = Integer.MIN_VALUE;
	
	
	public String getExtensionCode() {
		return extensionCode;
	}
	public void setExtensionCode(String extensionCode) {
		this.extensionCode = extensionCode;
	}
	public Integer getGoodsId() {
		return goodsId;
	}
	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}
	public String getGoodsName() {
		return goodsName;
	}
	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	public Integer getGoodsNumber() {
		return goodsNumber;
	}
	public void setGoodsNumber(Integer goodsNumber) {
		this.goodsNumber = goodsNumber;
	}
	public Integer getIsGift() {
		return isGift;
	}
	public void setIsGift(Integer isGift) {
		this.isGift = isGift;
	}
	public Integer getIsReal() {
		return isReal;
	}
	public void setIsReal(Integer isReal) {
		this.isReal = isReal;
	}
	public float getMarketPrice() {
		return marketPrice;
	}
	public void setMarketPrice(float marketPrice) {
		this.marketPrice = marketPrice;
	}
	public Integer getOrderId() {
		return orderId;
	}
	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}
	public Integer getRecId() {
		return recId;
	}
	public void setRecId(Integer recId) {
		this.recId = recId;
	}
	public String getSku() {
		return sku;
	}
	public void setSku(String sku) {
		this.sku = sku;
	}
	public Integer getSpecId() {
		return specId;
	}
	public void setSpecId(Integer specId) {
		this.specId = specId;
	}
	
	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof DmpOrderGoods)) return false;
		else {
			DmpOrderGoods dmpOrderGoods = (DmpOrderGoods) obj;
			if (null == this.getRecId() || null == dmpOrderGoods.getRecId()) return false;
			else return (this.getRecId().equals(dmpOrderGoods.getRecId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getRecId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getRecId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}
	
	
	public String toString()
	{
		return super.toString();
	}
	public float getGoodsPrice() {
		return goodsPrice;
	}
	public void setGoodsPrice(float goodsPrice) {
		this.goodsPrice = goodsPrice;
	}

}
